package com.bw.skill;


import android.os.Handler;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/28 0028 上午 8:55
 *
 */
   class TimeThread  extends Thread {
       private Handler handler;

    public TimeThread(Handler handler) {
        this.handler = handler;
    }

    @Override
    public void run() {
        super.run();
        while (!isInterrupted()){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            handler.sendEmptyMessage(0);
        }
    }
}
